package com.hunan.hive.exception;

/**
 * Created by fuqi on 2018/7/4.
 */
public class SqlException  extends RuntimeException{

    private static final long serialVersionUID = 7287397280270029496L;



    public SqlException(String message) {
        super(message);
    }

    public SqlException(Exception e, String sql) {
        super("数据库运行期异常");
        e.printStackTrace();

            System.out.println("数据库运行期异常，相关sql语句为" + sql);
            System.out.println(e);

    }

    public SqlException(String message, String sql) {
        super(message);

        System.out.println(message + "，相关sql语句为" + sql);

    }

}
